package com.jy.adscm.operation.cg.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-08-06
 */
public class CgSuppilerInfo implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 供应商id
     */
    private Integer sid;
    /**
     * 上次金额
     */
    private Float lastNums;
    /**
     * 这次金额
     */
    private Float nowNums;
    private Float nums;
    /**
     * 类型
     */
    private Integer type;
    //创建人
    private  String  creator;
    @TableField(exist = false)
    private  String  creatorName;

    private Date createTime;

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Float getLastNums() {
        return lastNums;
    }

    public void setLastNums(Float lastNums) {
        this.lastNums = lastNums;
    }

    public Float getNowNums() {
        return nowNums;
    }

    public void setNowNums(Float nowNums) {
        this.nowNums = nowNums;
    }

    public Float getNums() {
        return nums;
    }

    public void setNums(Float nums) {
        this.nums = nums;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "CgSuppilerInfo{" +
        "id=" + id +
        ", sid=" + sid +
        ", lastNums=" + lastNums +
        ", nowNums=" + nowNums +
        ", nums=" + nums +
        ", type=" + type +
        "}";
    }
}
